<ui:composition template="../admin/template/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="panelTitle" value="Cambie su Contraseña" />

	<ui:define name="panelContent" class="admin-font">

		<p:growl id="messages" />

		<div align="center">
			<p:panel columns="3"  style="width: 60%">
				<h:panelGrid id="displayView" columns="3" cellpadding="8"
					 cellspacing="5" styleClass="admin-input-text2">

					<h:outputLabel for="password" value="Nueva Contraseña: " />
					<p:password id="password" value="#{usuarioMB.password}"
						match="passwordRepeat" required="true" feedback="true"
						requiredMessage="Campo contraseña obligatorio" label="Contraseña">
						<f:validateLength minimum="6" update="passwordMsg" />
						<p:ajax event="blur" update="passwordMsg" />
					</p:password>
					<p:column />

					<h:outputLabel for="passwordRepeat"
						value="Repita la nueva Contraseña: " />
					<p:password id="passwordRepeat" value="#{usuarioMB.password}"
						label="Contraseña repetida" required="true"
						requiredMessage="Campo repetir contraseña obligatorio" feedback="true">
						<f:validateLength minimum="6" update="passwordMsg" />
						<p:ajax event="blur" update="passwordMsg" />
					</p:password>
					<p:message id="passwordMsg" for="password" display="icon" />

					<p:column />
					<p:column>
						<div>
							<p:commandButton id="modificarPass" value="Aceptar"
								action="#{usuarioMB.modificarPassword}" ajax="false" />
							<p:commandButton id="cancelar" value="Cancelar" immediate="true"
								action="/auditoria/index.html?faces-redirect=true" ajax="false" />
						</div>
					</p:column>

				</h:panelGrid>
			</p:panel>
		</div>
	</ui:define>
</ui:composition>